package org.zlpt.entity.co;

import lombok.Data;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

import java.util.Date;

@Data
@DataType
public class LesseeCompanyCO {
    //承租方企业
    public static final String keyPrefiex = "sys_lessee_company:";
    //承租方企业id
    @Property
    private Long lesseeCompanyId;
    //用户id
    @Property
    private Long userId;
    //企业名
    @Property
    private String companyName;
    //企业简称
    @Property
    private String companyShortName;
    //统一社会信用代码
    @Property
    private String companyUsci;
    //营业执照url
    @Property
    private String businessLicenseUrl;
    //纳税人资质
    private Integer taxpayerType;
    //创建人id
    @Property
    private Long createBy;
    //创建时间
    @Property
    private Date createTime;
    //修改人id
    @Property
    private Long updateBy;
    //修改时间
    @Property
    private Date updateTime;


    public String formKey() {
        return keyPrefiex + lesseeCompanyId;
    }
    public static String formKey(Long userId) {
        return keyPrefiex + userId;
    }
}
